package com.acoreful.bootsample.dao.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="tb_book")
public class Book implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5752999229013675025L;

	@Id
	@GeneratedValue
	private Long id;
	
	@Column(nullable = false)
	private String bookNo;
	
	@Column(nullable = false)
    private String name;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
}
